<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录系统</title>
    <link rel="stylesheet" href="/static/css/bootstrap.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">

    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            text-decoration: none;
        }

        body {
            background-image: url("static/source/image/top-bg.png");
            background-repeat: repeat;
            font-family: Arial, sans-serif;
        }

        #login_bc {
            top: 60px;
            width: 100%;
            position: relative;
            height: 480px;
            background-image: url("/static/source/image/bc1.png");
        }

        #login_box {
            width: 320px;
            height: auto;
            z-index: 5;
            position: absolute;
            top: 50px;
            right: 10px;
            padding: 20px;
            background-color: rgba(255, 255, 255, 0.95);
            border-radius: 5px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        #login_btn {
            display: inline-block;
            width: 100%;
            padding: 10px 20px;
            font-size: 16px;
            font-weight: bold;
            color: #fff;
            background-color: #2367B1;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        #login_btn:hover {
            background-color: #1d5a91;
        }

        .identity-group {
            margin-top: 15px;
        }

        .identity-group label {
            margin-right: 15px;
        }

        .form-control {
            border-radius: 20px;
        }

        .register-link {
            position: absolute;
            top:10px;
            margin-top:15px;
            margin-left: 190px;
            text-align: center;
        }

        .register-link a {
            color: #2367B1;
        }
    </style>
</head>
<body>
<div class="el-row" style="margin: 50px 50px 32px; color: rgb(35, 103, 177); font-size: 33px;">
    <h1><i class="fa fa-desktop"></i> 师生一体化教考系统 </h1>
</div>
<div id="login_bc">
    <div id="login_box">
        <form method="post" >
            {% csrf_token %}
            {% if error_message %}
                <div class="error-message">{{ error_message }}</div>
            {% endif %}
            <div class="form-group">
                <label for="exampleInputEmail1">用户名</label>
                <input type="text" class="form-control" id="exampleInputEmail1" placeholder="输入工号/学号" name="no">
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">密码</label>
                <input type="password" class="form-control" id="exampleInputPassword1" placeholder="密码"
                       name="password">

            </div>
            <div class="identity-group">
                <label>身份:</label>
                <label class="radio-inline">
                    <input type="radio" name="identy" id="identy_teacher" value="teacher" checked> 老师
                </label>
                <label class="radio-inline">
                    <input type="radio" name="identy" id="identy_student" value="student"> 学生
                </label>
            </div>
            <button type="submit" class="btn" id="login_btn">登录</button>
        </form>
        <div class="register-link">
            <a href={% url 'register' %}>注册信息</a>
        </div>
    </div>
</div>
</body>
</html>
